import request from '@/utils/request'
// 币种信息
export function rMaps(id) {
    return request({
        url: 'api/trend/rMaps',
        method: 'get',
        params:{
            id
        }
    })
}
export function minerList(params) {
    return request({
        url: 'api/goods/minerList',
        method: 'get',
        params:params
    })
}
export function confirmOrder(params) {
    return request({
        url: 'api/goods/confirmOrder',
        method: 'get',
        params:params
    })
}
export function orderList(params) {
    return request({
        url: 'api/goods/orderList',
        method: 'get',
        params:params
    })
}
export function tradeList(params) {
    return request({
        url: 'api/trade/tradeList',
        method: 'get',
        params:params
    })
}
export function myTradeList(params) {
    return request({
        url: 'api/trade/myTradeList',
        method: 'get',
        params:params
    })
}
export function tradeOrderList(params) {
    return request({
        url: 'api/trade/tradeOrderList',
        method: 'get',
        params:params
    })
}
// k线图
export function createTrade(params) {
    return request({
        url: 'api/trade/createTrade',
        method: 'get',
        params:params
    })
}
export function trade(params) {
    return request({
        url: 'api/trade/trade',
        method: 'get',
        params:params
    })
}
export function trendDetail(period,id) {
    return request({
        url: 'api/trend/kMaps',
        method: 'get',
        params:{
            period,
            id
        }
    })
}